package com.lantosec.hmrp.modules.category.vo;

import com.lantosec.hmrp.core.mvc.BaseVO;
import com.lantosec.hmrp.modules.category.entity.Statistical;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/*
* 资产分类统计
* */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StatisticalVO extends BaseVO<Statistical> {

    public StatisticalVO(Statistical entity){
        this.deptId = entity.getDeptId();
        this.deptName = entity.getDeptName();
        this.total = entity.getTotal();
        this.nowPrice = entity.getNowPrice();
        this.price = entity.getPrice();
        this.categoryName = entity.getCategoryName();
        this.categoryId = entity.getCategoryId();
        this.lableType = entity.getLableType();
        this.state = entity.getState();
    }
    @Override
    public Statistical convertToEntity() {
        return new Statistical(this);
    }

    @ApiModelProperty(value = "部门ID")
    private String deptId;

    @ApiModelProperty(value = "部门名称")
    private String deptName;

    @ApiModelProperty(value = "总数")
    private String total;

    @ApiModelProperty(value = "资产净值")
    private String nowPrice;

    @ApiModelProperty(value = "资产原值")
    private String price;

    @ApiModelProperty(value = "分类名称")
    private String categoryName;

    @ApiModelProperty(value = "分类ID")
    private String categoryId;

    @ApiModelProperty(value = "标签材质")
    private String lableType;

    @ApiModelProperty(value = "资产状态")
    private String state;
}
